package com.test.utils.entities;

public class EntitiesUtils {

	public static String removeDuplicateSpaces(final String name) {
		String result = new String(name).trim();
		while (result.indexOf("  ") >= 0) {
			result = result.replaceAll("  ", " ");
		}
		return result;
	}
}
